<?php

namespace Admin\Controller;

use Think\Controller;


class WebsocketController extends Controller
{
    public $_local_id;

    public function __construct()
    {
        parent::__construct();
        $this->_local_id = session('userInfo')['local_id'];
    }


    public function deleteOne()
    {
        $id = I('id');
        $res = M('websocket_order_msg')->where(['id' => $id, 'local_id' => $this->_local_id])->delete();
        if ($res) {
            echo 1;
        }else{
            echo 0;
        }
    }


}